package com.example.natatorium_management.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.natatorium_management.entity.Reserve;
import com.example.natatorium_management.result.restful.R;

public interface ReserveService {
    R<IPage<Reserve>> queryPage(int current,int size);
    R<Reserve> addReserve(Reserve reserve);
    R<Reserve> deleteReserveById(int reserveId);

    R<Reserve> findReserveById(int reserveId);

    R<IPage<Reserve>> findReserve(Reserve reserve,int current,int size);

    R<Reserve> updateReserve(Reserve reserve);
}
